package schoolWork.Test6;

import org.jetbrains.annotations.NotNull;

import java.util.Scanner;


class TestPalindromeString {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String s1 = input.nextLine();
        boolean isPalindrome = PalindromeString.isPalindromeString(s1);
        System.out.println(isPalindrome);
    }
}
public class PalindromeString {

    public static boolean isPalindromeString(@NotNull String s) {
        int begin = 0;
        int end = s.length();
        while(begin < end)
        {
            char head = s.charAt(begin);
            char tail = s.charAt(end-1);

            if(head != tail)
                return false;
            end--;
            begin++;
        }
        return true;
    }
}
